package com.sl.au.entity;


import javax.persistence.*;

@Entity
@Table(name = "sl_crm_customer")
public class Customer extends Root {
	
	/**	创建者 */
	@ManyToOne
	private User user;
	
	//编号
	@Column(name = "sCustomerCode", nullable = false)
	private String customerCode;
	//名称
	@Column(name = "sCustomerName", nullable = false)
	private String customerName;
	//别名
	@Column(name = "sAnotherName")
	private String anotherName;
	//所属行业
	@Column(name = "sBusiness")
	private String business;
	//所属片区
	@OneToOne
	@JoinColumn
	private SaleArea saleArea;
	//上级单位
	@Column(name = "sSuperior")
	private String superior;
	//订货代表
	@Column(name="cDHDB")
	private String cDHDB;
	//订货电话
	@Column(name="cDHPhone")
	private String cDHPhone;
	//审核状态
	@Column(name="sauditState")
	private String auditState;
	//公司地址
	@Column(name = "sAddress")
	private String address;
	// 备注
	@Column(name = "sBaseMemo")
	private String baseMemo;
	
	
//////////////////////////////信用等级
    //资产性质
	@Column(name = "sAsset")
	private String asset;
	//续存年限
	@Column(name = "sContinuelife")
	private String continuelife;
	//买方属性
	@Column(name = "sBuyer")
	private String buyer;
	//信用支付
	@Column(name = "sCredit")
	private String credit;
	//合作期限
    @Column(name = "sPeriod")
	private String period;
	//领导赋值
	@Column(name = "nScore")
	private int score;
	//信用等级
	@Column(name = "sCreditLevel")
	private String creditLevel;
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public String getCustomerCode() {
		return customerCode;
	}
	public void setCustomerCode(String customerCode) {
		this.customerCode = customerCode;
	}
	public String getCustomerName() {
		return customerName;
	}
	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}
	public String getAnotherName() {
		return anotherName;
	}
	public void setAnotherName(String anotherName) {
		this.anotherName = anotherName;
	}
	public String getBusiness() {
		return business;
	}
	public void setBusiness(String business) {
		this.business = business;
	}
	public SaleArea getSaleArea() {
		return saleArea;
	}
	public void setSaleArea(SaleArea saleArea) {
		this.saleArea = saleArea;
	}
	public String getSuperior() {
		return superior;
	}
	public void setSuperior(String superior) {
		this.superior = superior;
	}
	public String getcDHDB() {
		return cDHDB;
	}
	public void setcDHDB(String cDHDB) {
		this.cDHDB = cDHDB;
	}
	public String getcDHPhone() {
		return cDHPhone;
	}
	public void setcDHPhone(String cDHPhone) {
		this.cDHPhone = cDHPhone;
	}
	public String getAuditState() {
		return auditState;
	}
	public void setAuditState(String auditState) {
		this.auditState = auditState;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getBaseMemo() {
		return baseMemo;
	}
	public void setBaseMemo(String baseMemo) {
		this.baseMemo = baseMemo;
	}
	public String getAsset() {
		return asset;
	}
	public void setAsset(String asset) {
		this.asset = asset;
	}
	public String getContinuelife() {
		return continuelife;
	}
	public void setContinuelife(String continuelife) {
		this.continuelife = continuelife;
	}
	public String getBuyer() {
		return buyer;
	}
	public void setBuyer(String buyer) {
		this.buyer = buyer;
	}
	public String getCredit() {
		return credit;
	}
	public void setCredit(String credit) {
		this.credit = credit;
	}
	public String getPeriod() {
		return period;
	}
	public void setPeriod(String period) {
		this.period = period;
	}
	public int getScore() {
		return score;
	}
	public void setScore(int score) {
		this.score = score;
	}
	public String getCreditLevel() {
		return creditLevel;
	}
	public void setCreditLevel(String creditLevel) {
		this.creditLevel = creditLevel;
	}
	

}
